package com.atguigu.spring;

import com.atguigu.spring.controller.DemoController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Module20MainType {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(Module20MainType.class, args);
        System.out.println("----------------------------------------------");
        DemoController controller = ioc.getBean(DemoController.class);
        System.out.println("controller = " + controller);
    }

}
